﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for IUserRoleServiceTest and is intended
    ///to contain all IUserRoleServiceTest Unit Tests
    ///</summary>
    [TestClass()]
    public class IUserRoleServiceTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        internal virtual IUserRoleService CreateIUserRoleService()
        {
            // TODO: Instantiate an appropriate concrete class.
            IUserRoleService target = null;
            return target;
        }

        /// <summary>
        ///A test for GetRedirectUrl
        ///</summary>
        [TestMethod()]
        public void GetRedirectUrlTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            string UserName = string.Empty; // TODO: Initialize to an appropriate value
            bool remember = false; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.GetRedirectUrl(UserName, remember);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetRolesForUser
        ///</summary>
        [TestMethod()]
        public void GetRolesForUserTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            string username = string.Empty; // TODO: Initialize to an appropriate value
            string[] expected = null; // TODO: Initialize to an appropriate value
            string[] actual;
            actual = target.GetRolesForUser(username);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetRolesValueForUser
        ///</summary>
        [TestMethod()]
        public void GetRolesValueForUserTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            string username = string.Empty; // TODO: Initialize to an appropriate value
            long[] expected = null; // TODO: Initialize to an appropriate value
            long[] actual;
            actual = target.GetRolesValueForUser(username);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUserInfo
        ///</summary>
        [TestMethod()]
        public void GetUserInfoTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            string key = string.Empty; // TODO: Initialize to an appropriate value
            User expected = null; // TODO: Initialize to an appropriate value
            User actual;
            actual = target.GetUserInfo(key);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LogIn
        ///</summary>
        [TestMethod()]
        public void LogInTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            string username = string.Empty; // TODO: Initialize to an appropriate value
            bool remember = false; // TODO: Initialize to an appropriate value
            target.LogIn(username, remember);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LogOut
        ///</summary>
        [TestMethod()]
        public void LogOutTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            target.LogOut();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ValidationUser
        ///</summary>
        [TestMethod()]
        public void ValidationUserTest()
        {
            IUserRoleService target = CreateIUserRoleService(); // TODO: Initialize to an appropriate value
            string key = string.Empty; // TODO: Initialize to an appropriate value
            string password = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.ValidationUser(key, password);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
